// @import 'pur-min.css';
@import 'normalize.css';
@import 'animate.min.css';
@import 'imgicon';

%boxshadow {
  box-shadow: 1px 1px 3px rgba(black,.6);
}

%textshadow {
  text-shadow: 1px 1px 2px rgba(black,.6);
}

%oneline {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html {
  font-family: "Microsoft Yahei";
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

.bg {
  background: url("../images/bg.jpg") center center no-repeat;
  background-size: cover;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.wrapper-left,
.wrapper-right {
  box-sizing: border-box;
  float: left;
  height: 100vh;
}

.wrapper-left {
  background: rgba(#5f5e0c, .5);
  // background:linear-gradient(to right,rgba(#5f5e0c, .5) 80%,transparent);
  width: 380px;
  box-shadow: 1px 0 4px rgba(black,.5);
  position: relative;

  img {
    width: 247px;
    height: 396px;
    position: absolute;
    left: 50px;
    top: 40px;
  }
}

.confirm-method {
  color: white;
  width: 100%;
  position: absolute;
  top: 420px;
  box-sizing: border-box;
  padding: 20px;

  h2 {
    font-size: 30px;
    padding: 10px;
  }

  .confirm-header {
    border-bottom: 1px solid rgba(white,.3);
  }

  .confirm-footer {
    border-top: 1px solid rgba(white,.3);
    text-align: right;
  }

  ul {
    margin: 0;
    padding: 0;
  }

  li {
    margin: 15px 0;
    font-size: 24px;
    padding-left: 20px;

    span {
      display: inline-block;
      vertical-align: middle;
    }

    span:nth-of-type(1) {
      width: 9em;
      @extend %textshadow;
    }

    span:nth-of-type(2) {
      width: 2em;
      height: 2em;
      // background:orange;
      background-size: 100%;
    }

    .img-zhiwen {
      background: url($img-zhiwen) center center no-repeat;
    }

    .img-tiaoma {
      background: url($img-tiaoma) center center no-repeat;
    }

    .img-rfid {
      background: url($img-rfid) center center no-repeat;
    }

    .img-ic {
      background: url($img-ic) center center no-repeat;
    }

    .img-id {
      background: url($img-id) center center no-repeat;
    }

    .img-ss {
      background: url($img-ss) center center no-repeat;
    }
  }
}

.wrapper-right {
  width: 1920px - 380px;
  padding: 20px;
}

h1 {
  margin: 20px 0 0;
  padding-bottom: 20px;
  font-size: 42px;
  color: #535200;
  border-bottom: 1px solid rgba(#535200,.5);
  @extend %oneline;
  text-shadow: 1px 1px 1px rgba(black,.3);

  span {
    display: inline-block;
    margin-left: 10px;
    opacity: 0.6;
  }

  .h1bg {
    vertical-align: -15px;
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    background: url($img-h1) center center no-repeat;
    background-size: 100%;
    margin-right: 10px;
  }
}

.dataframe {
  clear: both;
  margin: 20px 0;
}

.dataframe-center,
.dataframe-left,
.dataframe-right {
  float: left;
  box-sizing: border-box;
  height: 73vh;
  padding: 10px;
}

.dataframe-left {
  width: 25%;
  // background:rgb(115, 228, 146);
  padding-top: 2vh;

  h3 {
    color: #535200;
    font-size: 36px;
    text-align: center;
    font-weight: normal;
    margin-bottom: 20px;
  }

  p {
    color: rgb(217, 244, 0);
    font-size: 42px;
    text-align: center;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(black,.2), 1px 1px 3px rgba(black,.6);
    letter-spacing: 10px;
    margin-top: 0;
  }
}

.dataframe-center {
  // background:rgb(116, 240, 11);
  // border-left:1px solid rgb(142, 167, 250);
  // border-right:1px solid rgb(142, 167, 250);
  width: 55%;

  #linegraph {
    margin-top: 16%;
    width: 100%;
    height: 60%;
    background: rgba(white,.6);
    border-radius: 0.5em;
    box-shadow: 1px 1px 3px rgba(black,.2);
  }

  h3 {
    text-align: center;
    color: #535200;
    font-size: 30px;
  }

  .img-tongji {
    vertical-align: middle;
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    margin-right: 10px;
    background: url($img-tongji) center center no-repeat;
    background-size: 100%;
  }
}

.dataframe-right {
  // background: rgb(82, 251, 179);
  width: 20%;

  h3 {
    text-align: center;
    font-size: 24px;
    color: #535200;
    font-weight: normal;
    margin-top: 0;
  }

  .img-rank {
    vertical-align: middle;
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    margin-right: 10px;
    background: url($img-rank) center center no-repeat;
    background-size: 100%;
  }
}

.reader-ranking {
  margin: 0;
  padding: 0;

  .ranking-item {
    // overflow: hidden;
    // box-sizing: border-box;
    padding: 8px;
    width: 100%;
  }

  .msg,
  .ranking-num,
  .reader-photo {
    display: inline-block;
    box-sizing: border-box;
    padding: 10px;
    vertical-align: middle;
  }

  .ranking-num {
    width: 30px;
    margin-left: 20px;
    text-align: center;
    // font-weight: bold;
    // font-family: fantasy;
    color: rgb(106, 106, 106);
    font-style: italic;
    // font-size:24px;
    font-weight: bold;
  }

  .reader-photo {
    width: 55px;
    height: 55px;
    background: rgba(white,.6);
    border: 2px solid rgb(221, 221, 221);
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    @extend %boxshadow;

    img {
      width: 110%;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%,-50%);
    }
  }

  .msg {
    width: 50%;

    .name {
      @extend %oneline;
      margin-bottom: 5px;
      color: #535200;
    }

    .readcount {
      padding-top: 5px;
      border-top: 1px dashed rgb(203, 203, 203);
      // color: rgb(217, 244, 0);
      color: #535200;
      font-weight: bold;
      font-style: italic;
      // text-shadow: 0 0 2px rgba(black,.6),1px 1px 2px rgba(black,.8);
    }
  }
}

.data-footer {
  text-align: center;

  h3 {
    border-top: 1px solid rgba(#535200,.5);
    // background:rgb(74, 55, 102);
    display: inline-block;
    width: 40%;
    box-sizing: border-box;
    color: #535200;
    font-size: 36px;
    text-align: center;
    font-weight: normal;
    margin: 0;
    padding-top: 10px;

    i {
      vertical-align: middle;
      display: inline-block;
      width: 1.5em;
      height: 1.5em;
      margin-right: 10px;
    }

    .img-zaiguan {
      background: url($img-zaiguan) center center no-repeat;
      background-size: 100%;
    }

    .img-zuowei {
      background: url($img-zuowei) center center no-repeat;
      background-size: 100%;
    }

    span {
      color: rgb(217, 244, 0);
      font-size: 42px;
      font-weight: bold;
      text-shadow: 0 0 3px rgba(black,.2), 1px 1px 3px rgba(black,.6);
      letter-spacing: 10px;
    }
  }
}

.reader-window {
  position: fixed;
  width:100vw;
  height:100vh;
  background: rgba(black,.5);
  display:none;
  .mask {
    position: fixed;
    width: 1000px;
    height: 600px;
    top: 20%;
    left: 50%;
    margin-left: -500px;
    background: rgba(white,.9);
    box-shadow: 0 0 10px rgba(black,.4),2px 2px 10px rgba(black,.6);
    box-sizing: border-box;
    border: 2px solid #535200;
    padding: 20px;
    border-radius: 20px;
    h2 {
      text-align: center;
      margin: 0;
      font-size: 36px;
    }

    .close {
      position: absolute;
      right: 0;
      top: 0;
      color: white;
      background: rgba(#5f5e0c, .5);
      // border:1px solid #535200;
      padding: 20px 30px;
      border-top-right-radius: 20px;
      border-bottom-left-radius: 20px;
      font-size: 24px;
      box-shadow: -1px 1px 3px rgba(black,.6);
    }

    .touxiang {
      width: 150px;
      height: 150px;
      background: rgba(white,.6);
      border: 2px solid rgb(221, 221, 221);
      border-radius: 50%;
      overflow: hidden;
      position: relative;
      @extend %boxshadow;
      margin: 30px auto 10px;
      // position: absolute;
      // left: 0;
      // top: 0;
      img {
        width: 110%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
      }
    }

    .reader-info {
      h3,
      h4 {
        margin: 0;
        box-sizing: border-box;
        padding: 20px;
        font-size: 30px;
        font-weight: normal;
        text-align: center;
        color:rgba(black,.6);

        span {
          font-weight: bold;
          color: #5f5e0c;
        }
      }

      h3 {
        width: 50%;
        border-bottom: 1px solid rgba(#5f5e0c, .5);
      }

      h4 {
        width: 100%;
      }
    }

    .reader-info > * {
      float: left;
    }
  }
}

#error {
  position: fixed;
  width: 1000px;
  height: 60px;
  left: 50%;
  top: 125px;
  margin-left: -500px;
  background: rgba(red,.5);
  box-shadow: 0 0 3px rgba(black,.4),1px 1px 3px rgba(black,.6);
  box-sizing: border-box;
  border: 2px solid white;
  color: white;
  @extend %textshadow;
  text-align: center;
  line-height: 60px;
  font-size: 28px;
  border-radius: 50px;
  z-index: 9999;
}

#error:empty {
  display: none;
}

#btn1 {
  // font-size: 30px;
  position: fixed;
  right: 0;
  top: 0;
}

#btn2 {
  // font-size: 30px;
  position: fixed;
  right: 0;
  top: 40px;
}
